

<tagLib name="html" />
<include file="../Public/header" />
<div id="wrap"> <include file="../Public/top" />
  <div id="content">
    <div class="mainarea">
      <div class="maininner">
        <div class="bdrcontent">
          <form id="phpform" method="post" action="__URL__/insert" class="formtable" onsubmit="return $.formValidator.pageIsValid('1')">
            <table width="100%" cellpadding="0" cellspacing="0" class="formtable">
			  <tr>
			    <td width="150">id:</td>
			    <td><input name="id" type="text" style="width:60px;" id="id"  /></td>
		      </tr>
			  <tr>
                <td>name：</td>
                <td><input name="name" type="text" style="width:160px;" id="name"  /></td>
              </tr>
			  <tr>
                <td>cnName：</td>
                <td><input name="cnName" type="text" style="width:160px;" id="cnName"  /></td>
              </tr>
			  <tr>
                <td>info：</td>
                <td><textarea name="info" rows="4" id="info" style="width:360px;"></textarea></td>
              </tr>
			  <tr>
                <td><label for="status">状态：</label></td>
                <td>
                  <select name="status" id="status">
                  	<option value="1">开启</option>
                  	<option value="0">关闭</option>
                  </select>                </td>
              </tr>
              
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" value="提交" class="submit" />
                  <input name="reset" type="reset" value="重置" class="submit" />
                  <input name="button" type="button" value="返回" onclick="javascript:history.go(-1);"  class="submit" /></td>
              </tr>
            </table>
          </form>
        </div>
        <br />
      </div>
    </div>
    <include file="../Public/menu" /> </div>
  <include file="../Public/footer" /> </div>
</body>
</html>

<script type="text/javascript">
	
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	$("#id").formValidator({onshow:"请输入id",onfocus:"id至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:1,onerror:"你输入的id长度不正确,请确认"});
//	$("#name").formValidator({onshow:"请输入name",onfocus:"name至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的name长度不正确,请确认"});
//	$("#cnName").formValidator({onshow:"请输入enName",onfocus:"enName至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的enName长度不正确,请确认"});
//	$("#info").formValidator({onshow:"请输入info",onfocus:"info至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的info长度不正确,请确认"});
//	$("#status").formValidator({onshow:"请输入status",onfocus:"status至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的status长度不正确,请确认"});
//	$("#rest1").formValidator({onshow:"请输入rest1",onfocus:"rest1至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的rest1长度不正确,请确认"});
//	$("#rest2").formValidator({onshow:"请输入rest2",onfocus:"rest2至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的rest2长度不正确,请确认"});
//	$("#rest3").formValidator({onshow:"请输入rest3",onfocus:"rest3至少要输入5个汉字",oncorrect:"恭喜你,你输对了",defaultvalue:""}).inputValidator({min:10,onerror:"你输入的rest3长度不正确,请确认"});
});
	
</script>